<?php 
	if(isset($_GET['q'])) {
        switch($_GET['q']) {
			## Dashboard pages
			case 'dashboard':
				$fileInclude = 'dashboard/dashboard.php';
			break;
			
			## CMS Pages
			case 'cms':
				$fileInclude = 'cms/cms.php';
			break;
			
			case 'addcms':
				$fileInclude = 'cms/addcms.php';
			break;
			
			case 'editcms':
				$fileInclude = 'cms/editcms.php';
			break;
			
			case 'cmsdetails':
				$fileInclude = 'cms/cmsdetails.php';
			break;
			
			## FAQ Categories
			case 'faqcategories':
				$fileInclude = 'faqcategories/faqcategories.php';
			break;
			
			case 'addfaqcategory':
				$fileInclude = 'faqcategories/addfaqcategory.php';
			break;
			
			case 'editfaqcategory':
				$fileInclude = 'faqcategories/editfaqcategory.php';
			break;
			
			## FAQ
			case 'faqs':
				$fileInclude = 'faq/faqs.php';
			break;
			
			case 'editfaqs':
				$fileInclude = 'faq/editfaq.php';
			break;
			
			case 'addfaqs':
				$fileInclude = 'faq/addfaq.php';	
			break;
			
			case 'faqdetails':
				$fileInclude = 'faq/faqdetails.php';	
			break;
			
			## Trade Categories
			case 'tradecategories':
				$fileInclude = 'tradecategories/tradecategories.php';
			break;
			
			case 'addtradecategory':
				$fileInclude = 'tradecategories/addtradecategory.php';
			break;
			
			case 'edittradecategory':
				$fileInclude = 'tradecategories/edittradecategory.php';
			break;
			
			## Membership plan
			case 'plan':
				$fileInclude = 'membershipplan/plan.php';
			break;
			
			case 'editplan':
				$fileInclude = 'membershipplan/editplan.php';
			break;
			
			case 'plandetails':
				$fileInclude = 'membershipplan/plandetails.php';
			break;
			
			## Manage Payment Report
			case 'paymenthistory':
				$fileInclude = 'payment/paymenthistory.php';
			break;
			
			case 'paymenthisdetail':
				$fileInclude = 'payment/paymenthisdetail.php';
			break;
			## Manage Review
			case 'jobreview':
				$fileInclude = 'review/jobreview.php';
			break;
			
			case 'jobreviewdetail':
				$fileInclude = 'review/jobreviewdetail.php';
			break;
			
			## Job Lead			
			case 'tradesmanuserlist':
				$fileInclude = 'joblead/tradesmanuserlist.php';
			break;

			case 'jobleads':
				$fileInclude = 'joblead/jobleads.php';
			break;
			
			case 'jobleaddetail':
				$fileInclude = 'joblead/jobleaddetail.php';
			break;
			
			
			
			## Leads
			case 'leads':
				$fileInclude = 'manageleads/leads.php';
			break;
			
			case 'addlead':
				$fileInclude = 'manageleads/addlead.php';
			break;
			
			case 'editlead':
				$fileInclude = 'manageleads/editlead.php';	
			break;
			
			case 'uploadcode':
				$fileInclude = 'manageleads/upload_codes.php';
			break;
			
			
			## Testimonials 
			/* for displaying testimonials */
			case 'testimonials':
				$fileInclude = 'testimonials/manage_testimonials.php';
			break;
			/* for displaying details of specific testimonials */
			case 'testimonialdetails':
				$fileInclude = 'testimonials/testimonial_details.php';
			break;		
			/* for displaying editing specific testimonials */
			case 'testimonialedit':
					$fileInclude = 'testimonials/testimonial_edit.php';
			break;	
			/* for adding new specific testimonials */
			case 'addtestimonial':
					$fileInclude = 'testimonials/testimonial_add.php';
			break;	
			
			## Manage Message
			case 'messages':
				$fileInclude = 'messages/messages.php';
			break;	
			
			case 'detail_msg':
				$fileInclude = 'messages/detail_msg.php';
			break;

			
			## BLOG
			case 'blogs':
				$fileInclude = 'blogs/blogs.php';
			break;
			
			case 'addblogs':
				$fileInclude = 'blogs/addblog.php';
			break;
			
			case 'editblogs':
				$fileInclude = 'blogs/editblog.php';
			break;
			
			case 'blogdetails':
				$fileInclude = 'blogs/blogdetails.php';
			break;
			
			case 'blogcomments':
				$fileInclude = 'blogs/blogcomments.php';
			break;
			
			case 'blogcommentdetails':
				$fileInclude = 'blogs/blogdetailscomment.php';
			break;
			
			## Forums
			case 'forums':
				$fileInclude = 'forums/forums.php';
			break;
			
			case 'addforums':
				$fileInclude = 'forums/addforums.php';
			break;
			
			case 'editforum':
				$fileInclude = 'forums/editforum.php';
			break;
			
			case 'forumdetails':
				$fileInclude = 'forums/forumdetails.php';
			break;
			
			case 'forumcomments':
				$fileInclude = 'forums/forumcomments.php';
			break;
			
			case 'forumcommentdetails':
				$fileInclude = 'forums/forumdetailscomment.php';
			break;
			
			## Contact
			case 'contact':
				$fileInclude = 'contact/contact.php';
			break;
			
			case 'detail_contact':
				$fileInclude = 'contact/detail_contact.php';
			break;
			
			case 'reply':
				$fileInclude = 'contact/reply.php';
			break;
			
			case 'reply_detail':
				$fileInclude = 'contact/reply_detail.php';
			break;
			
			## Report abuse
			case 'reportabuse':
				$fileInclude = 'reportabuse/reportabuse.php';
			break;
			
			case 'reportabusedetails':
				$fileInclude = 'reportabuse/reportabusedetails.php';
			break;

			
			## Country
			case 'country':
				$fileInclude = 'country/country.php';
			break;
			
			case 'addcountry':
				$fileInclude = 'country/addcountry.php';
			break;
			
			case 'editcountry':
				$fileInclude = 'country/editcountry.php';	
			break;
			
			## State
			case 'state':
				$fileInclude = 'state/state.php';
			break;
			
			case 'addstate':
				$fileInclude = 'state/addstate.php';
			break;
			
			case 'editstate':
				$fileInclude = 'state/editstate.php';	
			break;
			
			case 'postalcode':
				$fileInclude = 'state/postalcode.php';	
			break;

			case 'editpostalcode':
				$fileInclude = 'state/editpostalcode.php';	
			break;
			
			
			## city
			case 'city':
				$fileInclude = 'city/city.php';
			break;
			
			case 'addcity':
				$fileInclude = 'city/addcity.php';
			break;
			
			case 'editcity':
				$fileInclude = 'city/editcity.php';
			break;
			
			## Email
			case 'email':
				$fileInclude = 'emails/email.php';
			break;
			
			case 'detailemail':
				$fileInclude = 'emails/detailemail.php';
			break;
			
			case 'editemail':
				$fileInclude = 'emails/editemail.php';
			break;
			
			## Post Job 			
			case 'homeowneruserlist':
				$fileInclude = 'postjobs/homeowneruserlist.php';
			break;

			case 'postjobs':
				$fileInclude = 'postjobs/postjobs.php';
			break;
			
			case 'postjobdetail':
				$fileInclude = 'postjobs/postjobdetail.php';
			break;
			
			case 'editpostjob':
				$fileInclude = 'postjobs/editpostjob.php';
			break;

			case 'jobleadinfo':
				$fileInclude = 'postjobs/jobleadinfo.php';
			break;
			
			
			## Admin Users
			case 'adminusers':
				$fileInclude = 'adminusers/adminusers.php';
			break;
			
			case 'adduser':
				$fileInclude = 'adminusers/adduser.php';
			break;
			
			case 'edituser':
				$fileInclude = 'adminusers/edituser.php';	
			break;
			
			case 'permissions':
				$fileInclude = 'adminusers/permissions.php';	
			break;
			
			## Homeowner Users
			case 'homeowneruser':
				$fileInclude = 'homeowneruser/homeowneruser.php';
			break;
						
			case 'edithomeowneruser':
				$fileInclude = 'homeowneruser/edithomeowneruser.php';	
			break;
			
			case 'detailhomeowneruser':
				$fileInclude = 'homeowneruser/detailhomeowneruser.php';
			break;
			
			## Tradesman Users
			case 'tradesmanuser':
				$fileInclude = 'tradesmanuser/tradesmanuser.php';
			break;
						
			case 'edittradesmanuser':
				$fileInclude = 'tradesmanuser/edittradesmanuser.php';	
			break;
			
			case 'detailtradesmanuser':
				$fileInclude = 'tradesmanuser/detailtradesmanuser.php';
			break;
			case 'tradesmanuserworkphoto':
				$fileInclude = 'tradesmanuser/tradesmanuserworkphoto.php';
			break;			
			case 'addtradesmanuserworkphoto':
				$fileInclude = 'tradesmanuser/addtradesmanuserworkphoto.php';
			break;			
			
			
			
			## Manage Users
			case 'manageusers':
				$fileInclude = 'users/manageusers.php';
			break;
			
			case 'addnewuser':
				$fileInclude = 'users/addnewuser.php';
			break;
			
			case 'updateuser':
				$fileInclude = 'users/updateuser.php';	
			break;
			
			case 'userdetails':
				$fileInclude = 'users/userdetails.php';	
			break;
			
			## Settings
			case 'settings':
				$fileInclude = 'settings/settings.php';
			break;
			
			case 'sitesettings':
				$fileInclude = 'settings/sitesettings.php';
			break;
			

			case 'updatesitesetting':
				$fileInclude = 'settings/updatesitesetting.php';
			break;
			
			case 'updatetext':
				$fileInclude = 'settings/updatetext.php';
			break;
			
			case 'updateflag':
				$fileInclude = 'settings/updateflag.php';
			break;
			
			## Settings
			case 'helptext':
				$fileInclude = 'settings/helptext.php';
			break;
			
			case 'edithelptext':
				$fileInclude = 'settings/edithelptext.php';
			break;
			
			## change Password
			case 'changepassword':
				$fileInclude = 'settings/changepassword.php';
			break;
			
			## change email address
			case 'changeemail':
				$fileInclude = 'settings/changeemail.php';
			break;
			
			## change Password
			case 'editprofile':
				$fileInclude = 'settings/editprofile.php';
			break;
			
			## change Logo
			case 'uploadlogo':
				$fileInclude = 'settings/uploadlogo.php';
			break;
			
			case 'manageimages':
				$fileInclude = 'settings/manage_images.php';
			break;
			
			case 'addImage':
				$fileInclude = 'settings/add_image.php';
			break;
			
			case 'imagedetails':
				$fileInclude = 'settings/image_details.php';
			break;
			
			## change Username
			case 'changeusername':
				$fileInclude = 'settings/changeusername.php';
			break;
			
			## change Username
			case 'defaultsettings':
				$fileInclude = 'settings/defaultsettings.php';
			break;
			
			
			case 'defaultseo':
				$fileInclude = 'settings/defaultseo.php';
			break;
			##paypal settings  
			case 'paypal':
				$fileInclude = 'paypal/paypal.php';
			break;
			
			case 'paypaldetails':
				$fileInclude = 'paypal/paypaldetails.php';
			break;	
			
			case 'editpaypal':
				$fileInclude = 'paypal/editpaypal.php';
			break;		
			
			
			##NAB settings  
			case 'nab':
				$fileInclude = 'nab/nab.php';
			break;
			
			case 'nabdetails':
				$fileInclude = 'nab/nabdetails.php';
			break;	
			
			case 'editnab':
				$fileInclude = 'nab/editnab.php';
			break;		
			
			
			
			## Budget
			case 'budget':
				$fileInclude = 'budget/budget.php';
			break;
			
			case 'addbudget':
				$fileInclude = 'budget/addbudget.php';
			break;
			
			case 'editbudget':
				$fileInclude = 'budget/editbudget.php';	
			break;
			
			
			## SEO
			case 'seo':
				$fileInclude = 'seo/seo.php';
			break;
			
			case 'editseo':
				$fileInclude = 'seo/editseo.php';
			break;
			
						##website verification settings  
			case 'webcode':
				$fileInclude = 'websiteverification/webcode.php';
			break;
			
			case 'addwebcode':
				$fileInclude = 'websiteverification/addwebcode.php';
			break;	
			
			case 'editwebcode':
				$fileInclude = 'websiteverification/editwebcode.php';
			break;		
			
			##analytics settings  
			case 'analytics':
				$fileInclude = 'analytics/analytics.php';
			break;
			
			case 'addanalytics':
				$fileInclude = 'analytics/addanalytics.php';
			break;	
			
			case 'editanalytics':
				$fileInclude = 'analytics/editanalytics.php';
			break;
			

			default:
				$fileInclude = 'dashboard/dashboard.php';
				
			
				
		}
	} else {
		$fileInclude = 'dashboard/dashboard.php';
	}
	
	require_once '../admin/'.$fileInclude;
?>